package com.jiankang.askhealth.core.api.base;

import com.jiankang.askhealth.util.ApiErrorMsgUtil;


public class ApiErrorBean extends ApiBaseResultBean {

    public ApiErrorBean(int errorCode) {
        String msg = ApiErrorMsgUtil.getErrorMsg(errorCode);
        result = new ApiResult(errorCode, msg);
    }

    public ApiErrorBean(int errorCode, Object[] args) {
        String msg = ApiErrorMsgUtil.getErrorMsg(errorCode, args);
        result = new ApiResult(errorCode, msg);
    }

    public ApiErrorBean(int errorCode, String errorMsg) {
        result = new ApiResult(errorCode, errorMsg);
    }

}